<?php
$fname = $this->App->to_sentence($authuser['fname']);
?>
<section class="vbox">
    <?php echo $this->element('student/breadcrumbs'); ?>
    <section class="scrollable">
        <section class="hbox stretch">
            <?php echo $this->element('student/mini_profile'); ?>
            <aside class="bg-white">
                <section class="vbox">
                    <section class="scrollable">
                        <div class="wrapper">
                            <section class="panel panel-default">
                                <header class="panel-heading font-bold h4">
                                    Edit Your Profile
                                </header>
                                <div class="panel-body">
                                    <?php echo $this->Form->create('StudentUser', array('id' => 'edit_profile_form', 'class' => 'form-horizontal', 'inputDefaults' => array('label' => false,'div' => false)));?>
                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">Username</label>
                                            <div class="col-sm-8">
                                                <?php echo $authuser['username'] ;?>
                                                <!--<input type="text" class="form-control rounded">-->
                                            </div>
                                        </div>
                                        <div class="line line-dashed line-lg pull-in"></div>

                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">Password</label>
                                            <div class="col-sm-8">
                                                <?php echo $this->Form->input('password', array('type'=>'password','id'=>'password', 'class' => 'form-control rounded','div' => false, 'label' => false,)); ?>
                                            </div>
                                        </div>
                                        <div class="line line-dashed line-lg pull-in"></div>

                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">Phone Number</label>
                                            <div class="col-sm-8">
                                                <?php echo $this->Form->input('cellphone', array('id'=>'cellphone', 'class' => 'form-control rounded', 'value'=>$authuser['cellphone'], 'placeholder'=>'233-123456789','required'=>'required','div' => false, 'label' => false,)); ?>
                                            </div>
                                        </div>
                                        <div class="line line-dashed line-lg pull-in"></div>

                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">Email</label>
                                            <div class="col-sm-8">
                                                <?php echo $this->Form->input('email', array('id'=>'email', 'class' => 'form-control rounded', 'value'=>$authuser['email'],'placeholder'=>'example@you.com','required'=>'required','div' => false, 'label' => false,)); ?>
                                            </div>
                                        </div>
                                        <div class="line line-dashed line-lg pull-in"></div>

                                        <div class="form-group">
                                            <div class="col-sm-6 col-sm-offset-2">
                                                <?php echo $this->Form->input('id', array('id'=>'id', 'value'=>$authuser['id'],'div' => false, 'label' => false,)); ?>
                                                <button type="submit" id="update_btn" class="btn btn-info">Save changes</button>
                                                <button type="reset"  id="reset_btn" class="btn btn-default">Cancel</button>
                                            </div>
                                        </div>
                                    <?php echo $this->Form->end();?>
                                </div>
                            </section>
                        </div>
                    </section>
                </section>
            </aside>
            <aside class="col-lg-4 b-l">
                <section class="vbox">
                    <section class="scrollable">
                        <div class="wrapper">
                            <?php echo $this->element('student/wg_fee_payment_rate'); ?>
                            <?php echo $this->element('student/wg_calender'); ?>
                        </div>
                    </section>
                </section>
            </aside>
        </section>
    </section>
</section>
<a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen, open" data-target="#nav,html"></a>
<?php
    echo $this->Html->script('student/editprofile.js',array('inline'=>false));
?>